<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8" xmlns:th="http://www.thymeleaf.org">
    <title>Title</title>
</head>
<body>
<form action="/doAddDept" method="post">
    <form action="/doUpdateDept" method="post">
    部门编号：<input type="text" name="department_number" th:value="${dept.id}"/><br/>
    <!--    name的值要与实体类属性一样-->
    部门名称：<input type="text" name="name"  th:value="${dept.name}"/><br/>
    部门领导：<input type="text" name="manager"  th:value="${dept.manager}"/><br/>
    部门电话：<input type="text" name="telephone"  th:value="${dept.telephone}"/><br/>
    部门地址：<input type="text" name="address"  th:value="${dept.address}"/><br/>
    部门备注：<input type="text" name="notes"  th:value="${dept.notes}"/><br/>
    <input type="submit" value="增加">
</form>
</body>
</html>